//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.chris.impl;

import com.chris.entity.root;
import com.chris.utils.DbConnection;
import java.sql.Connection;
import java.sql.SQLException;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanHandler;

public class rootImpl {
    private final QueryRunner runner = new QueryRunner();

    public rootImpl() {
    }

    public root getUserByAccount(String account) throws SQLException {
        String sql = "select * from root where account=?";
        Connection connection = DbConnection.getConnection();
        return this.runner.query(connection, sql, new BeanHandler<>(root.class), account);
    }
}
